/*
 *  Copyright 2001-2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package ar.uba.fi.posgrado.economy.web.form.customer;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;

import ar.uba.fi.posgrado.economy.model.CustomerAccount;
import ar.uba.fi.posgrado.economy.model.Debt;

/**
 * Form para {@link CustomerAccount Cuenta Corriente de Clientes}
 * 
 * @author pablo.tortorella
 */
@SuppressWarnings("serial")
public class CustomerAccountForm extends ActionForm {

	private Long accountId;

	private Long customerId;

	private String customerName;

	private Double balance;

	private Double totalDebt;

	private List<Debt> activeDebts = new ArrayList<Debt>();

	private List<Debt> debts = new ArrayList<Debt>();

	// En caso de ser recibido indica a donde debe ser redireccionado el
	// findForward
	private String redirectTo;

	/**
	 * @return the debts
	 */
	public List<Debt> getDebts() {
		return debts;
	}

	/**
	 * @param debts
	 *            the debts to set
	 */
	public void setDebts(List<Debt> debts) {
		this.debts = debts;
	}

	/**
	 * @return the customerId
	 */
	public Long getCustomerId() {
		return customerId;
	}

	/**
	 * @param customerId
	 *            the customerId to set
	 */
	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	/**
	 * @return the totalDebt
	 */
	public Double getTotalDebt() {
		return totalDebt;
	}

	/**
	 * @param totalDebt
	 *            the totalDebt to set
	 */
	public void setTotalDebt(Double totalDebt) {
		this.totalDebt = totalDebt;
	}

	/**
	 * @return the balance
	 */
	public Double getBalance() {
		return balance;
	}

	/**
	 * @param balance
	 *            the balance to set
	 */
	public void setBalance(Double balance) {
		this.balance = balance;
	}

	/**
	 * @return the activeDebts
	 */
	public List<Debt> getActiveDebts() {
		return activeDebts;
	}

	/**
	 * @param activeDebts
	 *            the activeDebts to set
	 */
	public void setActiveDebts(List<Debt> deudas) {
		this.activeDebts = deudas;
	}

	/**
	 * @return the customerName
	 */
	public String getCustomerName() {
		return this.customerName;
	}

	/**
	 * @param customerName
	 *            the customerName to set
	 */
	public void setCustomerName(String name) {
		this.customerName = name;
	}

	/**
	 * @return the accountId
	 */
	public Long getAccountId() {
		return this.accountId;
	}

	/**
	 * @param accountId
	 *            the accountId to set
	 */
	public void setAccountId(Long id) {
		this.accountId = id;
	}

	/**
	 * @return the redirectTo
	 */
	public String getRedirectTo() {
		return this.redirectTo;
	}

	/**
	 * @param redirectTo
	 *            the redirectTo to set
	 */
	public void setRedirectTo(String redirectTo) {
		this.redirectTo = redirectTo;
	}

}
